package sanrenxing.dayEnd.backRepertoryTotal.domain;

/**
 * 交易席位
 */
public class TradingSeat {
    private String  seatId;
    private String seatName;
    private int seatType;
    private double commRate;
    private String stockId;
    private String seataddress;
    private String notes;


    public TradingSeat() {
    }

    public TradingSeat(String seatId, String seatName, int seatType, double commRate, String stockId, String seataddress, String notes) {
        this.seatId = seatId;
        this.seatName = seatName;
        this.seatType = seatType;
        this.commRate = commRate;
        this.stockId = stockId;
        this.seataddress = seataddress;
        this.notes = notes;
    }

    public String getSeatId() {
        return seatId;
    }

    public void setSeatId(String seatId) {
        this.seatId = seatId;
    }

    public String getSeatName() {
        return seatName;
    }

    public void setSeatName(String seatName) {
        if (seatName.trim().equals("")){
            this.seatName = null;
        }else
        this.seatName = seatName;
    }

    public int getSeatType() {
        return seatType;
    }

    public void setSeatType(String seatType) {
        if (seatType.trim().equals("")){
            this.seatType=0;
        }else
        this.seatType = Integer.parseInt(seatType);
    }

    public double getCommRate() {
        return commRate;
    }

    public void setCommRate(double commRate) {
        this.commRate = commRate;
    }

    public String getStockId() {
        return stockId;
    }

    public void setStockId(String stockId) {
        this.stockId = stockId;
    }

    public String getSeataddress() {
        return seataddress;
    }

    public void setSeataddress(String seataddress) {
        this.seataddress = seataddress;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }
}
